<%-- 
    Document   : editparticipantlist
    Created on : 11/08/2011, 12:00:06 PM
    Author     : s4201567 Tony Yu
--%>
<style>
    #users { margin-left:100px; }
    #users td { text-align:center; }
    
    .error { color:red; }
    
    #master-title {
        text-align:center;
    }
    
    #pa-list {
        padding-left:220px;
        width:auto;
        
    }
    #button{
       padding-top: 20px;  
        padding-bottom: 20px;   
    }
    #buttonback{
       padding-bottom: 20px;        
    }
    #table {         
        padding-bottom:20px;
        padding-top:20px;
        padding-left:70px;
        font-family: Verdana,Arial;
    } 
</style>

<%@ include file="../header.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <div id="content-container1">
        <div id="content">  
            <% if (request.getParameter("tempID") != null) { %>
            <div id="master-title">
                <h3>Add New Participant to the List</h3>
            </div>
            <%
                Object tempID = request.getParameter("tempID");
            %>
            <!-- Content goes here -->
            <div id="pa-list">
                <form:form method="post" commandName="editPartList">
                  <table bgcolor="f8f8ff" border="0" cellspacing="0" cellpadding="5">
                    <form:input path='templateID' hidden="true" type='text' value='<%=tempID%>'/>
                    <tr>
                      <td>New Participant ID:</td>
                        <td>
                            <form:input path="pollUserID" />
                        </td>
                        <td>
                            <form:errors path="pollUserID" cssClass="error"/>
                        </td>
                    </tr>
                  </table>
                  <div id="button" >
                      <input type="submit" align="center" value="Add Participant">
                      <input type="reset" value="Reset" name="reset">
                  </div>
                    <div id="buttonback" >
                        <input type="button" value="Back" onClick="javascript: history.go(-1)">
                    </div>
                </form:form>  
                
            </div>
            <% } else
                out.println("<p>The page was improperally formed, try going back and trying again.</p>");
            %>
    </div>		
		
<%@ include file="../footer.jsp" %>

